<me:UIWS x:Class="WPFExcelReport.TWSCO"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                     xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls" 
                    xmlns:SD="clr-namespace:WPFExcelReport;assembly=TSDDAT" 
                    xmlns:MUC="clr-namespace:WPFExcelReport;assembly=TICC_ABAUFM" 
                    xmlns:MCO="clr-namespace:WPFExcelReport;assembly=TICC_ABPOS_MCO" 
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                    xmlns:TXT="clr-namespace:WPFExcelReport;assembly=TTXTIND"  
                     x:Name="TV"
                    Loaded="Window_Loaded"
     >
    <me:UIWS.Resources>
        <CollectionViewSource  x:Key="vwMaster"/>       <CollectionViewSource  x:Key="vwDetail"/>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:NOTConverter  x:Key="not"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:NOTBoolToVisibilityConverter x:Key="nbv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
    </me:UIWS.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="1*"></ColumnDefinition>
            <ColumnDefinition Width="1*"></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <WrapPanel Grid.Column="0" Grid.Row="0">
            <TextBlock  Text="{Binding Source={Localization:Translate Word=整理/销售费用}}"/>
            <MCO:TMCO03 EXAUF="{Binding KAAUF,ElementName=TV}"/>
        </WrapPanel>
        <Expander Header="{Binding Source={Localization:Translate Word=经纱成本}}"  Grid.Row="1" Grid.Column="0" Name="ZoneJ"   >
            <MUC:TMCO07  Grid.Column="1" Grid.Row="2" 
                          MTYPE="G"
                         IsCanLoad="{Binding IsExpanded,ElementName=ZoneJ}"
                         EXAUF="{Binding SAAUF,ElementName=TV}"
                         />
        </Expander>
        <Expander Header="{Binding Source={Localization:Translate Word=纬纱成本}}"  Grid.Row="1" Grid.Column="1" Name="ZoneW" >
            <MUC:TMCO07  Grid.Column="1" Grid.Row="2" 
                          IsCanLoad="{Binding IsExpanded,ElementName=ZoneW}"
                          MTYPE="G"
                          EXAUF="{Binding WAAUF,ElementName=TV}"
                                />
        </Expander>
    </Grid>
</me:UIWS>
